package com.example.demo.service;

import com.example.demo.model.Article;
import com.example.demo.model.Board;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IArticleService {

    @Transactional
    public abstract void insertArticle(Article article);

    List<Article> selectAll();

    List<Article> selectMatchAllByBoardId(Long boardId);

    Board selectBoardById(Long boardId);

    Article selectDetailByArticleId(Long article);

    void updateArticleDetail(Article article);
    Article updateArticleAdmiration(Long id);

    @Transactional
    void deleteArticleById(Long id);

    Article selectArticleById(Long id);

    void addOneReplyCountById(Long id);

   List< Article> selectArticleByUserId(Long id);
}
